package izzat.fit.fit_mine.remote;

import izzat.fit.fit_mine.entity.Record;
import izzat.fit.fit_mine.entity.RequestEntity;
import izzat.fit.fit_mine.entity.ResponseEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @ClassName: DBRemote
 * @Description: 调用 db-service 服务
 * @Author: Izzat
 * @Date: 2019-12-31 18:58
 * @Version: v1.0
 */
@FeignClient(name= "db-service")
@RequestMapping(value = "db-service/mine")
public interface DBRemote {
    @RequestMapping(value = "test")
    public String hello();

    @RequestMapping(value = "allAction")
    public ResponseEntity allAction();

    @RequestMapping(value = "findScheduleByUserId")
    public ResponseEntity findScheduleByUserId(int request);

    @RequestMapping(value = "updatePlanByUserAndDate")
    public ResponseEntity updatePlanByUserAndDate(RequestEntity request);

    @RequestMapping(value = "addRecord")
    public ResponseEntity addRecord(Record request);

    @RequestMapping(value = "findHistory")
    public ResponseEntity findHistory(RequestEntity request);

}
